/*
 * Copyright 2003-2007 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */

package com.colony.networkvm.proxy;

import com.argot.remote.MetaMethod;

public class NvmMetaMethodRequest 
{
	MetaMethod _mMethod;
	Object[] _args;
	Throwable _exception;
	Object _result;
	
	public NvmMetaMethodRequest( MetaMethod mMethod, Object[] args )
	{
		_mMethod = mMethod;
		_args = args;
	}
	
	public Object[] getArguments() 
	{
		return _args;
	}
	
	public MetaMethod getMetaMethod()
	{
		return _mMethod;
	}

	public void setException(Throwable e) 
	{
		_exception = e;
	}

	public void setReturnValue(Object ret) 
	{
		_result = ret;
	}

	public Throwable getException() 
	{
		return _exception;
	}

	public Object getReturnValue() 
	{
		return _result;
	}

	public void setResponse(NvmMetaMethodRequest response) 
	{
		_exception = response.getException();
		_result = response.getReturnValue();		
	}
}
